package com.rc.gongr.worker;

import com.rc.gongr.dao.GongDao;
import com.rc.gongr.daoImpl.GongDaoImpl;

/**
 * This is where we will create the worker object to execute most of the general functions. Can easily be updated to
 * call a Spring bean factory and achieve the same result.
 *
 * @author Andrew Bell
 */
public class PostWorker {
    private final GongDao gongWorker = new GongDaoImpl();

    // Creates gong object, adds the necessary information, and then posts to database
    public void createGong(String comment) {
        gongWorker.postGong(comment);
    }


    public String getLastGong() {
        return gongWorker.getLastGong();
    }
}
